<?php

class PlayerBalance {

    private $playerID;
    private $bMoney;
    private $conn;

    function __construct() {
        
    }

    public function getPlayerID() {
        return $this->playerID;
    }

    public function getBMoney() {
        return $this->bMoney;
    }

    public function setPlayerID($playerID) {
        $this->playerID = $playerID;
    }

    public function setBMoney($bMoney) {
        $this->bMoney = $bMoney;
    }

    function insertPlayerBalance($conn) {
        mysqli_query($conn, 'SET NAMES utf8');
        $strInsert = "INSERT INTO playerbalance(PlayerID,BMoney) "
                . "VALUES('$this->playerID','$this->bMoney')";
        $result = mysqli_query($conn, $strInsert);
        return $result;
    }

}
